<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: CRecursiveMutex类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="class_c_recursive_mutex-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CRecursiveMutex类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>递归锁  
 <a href="class_c_recursive_mutex.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_recursive_mutex_8h_source.html">RecursiveMutex.h</a>&gt;</code></p>
<div class="dynheader">
类 CRecursiveMutex 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_c_recursive_mutex.png" usemap="#CRecursiveMutex_map" alt=""/>
  <map id="CRecursiveMutex_map" name="CRecursiveMutex_map">
<area href="class_c_mutex_base.html" title="锁基类" alt="CMutexBase" shape="rect" coords="0,0,112,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a4ef28266819d01562d3fdeb734cc8068"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_recursive_mutex.html#a4ef28266819d01562d3fdeb734cc8068">CRecursiveMutex</a> ()</td></tr>
<tr class="separator:a4ef28266819d01562d3fdeb734cc8068"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a81b3d2450ff8f1c06874c6ea85be67"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_recursive_mutex.html#a6a81b3d2450ff8f1c06874c6ea85be67">~CRecursiveMutex</a> ()</td></tr>
<tr class="separator:a6a81b3d2450ff8f1c06874c6ea85be67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba7f1be4b2bff1dd9375cc90e05941bb"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_recursive_mutex.html#aba7f1be4b2bff1dd9375cc90e05941bb">Lock</a> ()</td></tr>
<tr class="separator:aba7f1be4b2bff1dd9375cc90e05941bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23d5b6de26ead85da2c13ec5f523ceec"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_recursive_mutex.html#a23d5b6de26ead85da2c13ec5f523ceec">Unlock</a> ()</td></tr>
<tr class="separator:a23d5b6de26ead85da2c13ec5f523ceec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d5f2e5a91c7757d0eeb3f4f6a816289"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_recursive_mutex.html#a0d5f2e5a91c7757d0eeb3f4f6a816289">Handle</a> ()</td></tr>
<tr class="separator:a0d5f2e5a91c7757d0eeb3f4f6a816289"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_c_mutex_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_c_mutex_base')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_c_mutex_base.html">CMutexBase</a></td></tr>
<tr class="memitem:a00ead3b5e2f2712c0ba9fd9a81e37796 inherit pub_methods_class_c_mutex_base"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_mutex_base.html#a00ead3b5e2f2712c0ba9fd9a81e37796">CMutexBase</a> ()</td></tr>
<tr class="separator:a00ead3b5e2f2712c0ba9fd9a81e37796 inherit pub_methods_class_c_mutex_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a010cf0579d1577a0e5556b3be75673e6 inherit pub_methods_class_c_mutex_base"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_mutex_base.html#a010cf0579d1577a0e5556b3be75673e6">~CMutexBase</a> ()</td></tr>
<tr class="separator:a010cf0579d1577a0e5556b3be75673e6 inherit pub_methods_class_c_mutex_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:abc05b7ff3fcce00bfe0354f6a0b2700c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_recursive_mutex.html#abc05b7ff3fcce00bfe0354f6a0b2700c">Test_Recursive</a> (long dwThread)</td></tr>
<tr class="separator:abc05b7ff3fcce00bfe0354f6a0b2700c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:a553f9c6da7e67c6e186259122651864a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_recursive_mutex.html#a553f9c6da7e67c6e186259122651864a">delete_class_copy_operator</a> (<a class="el" href="class_c_recursive_mutex.html">CRecursiveMutex</a>)</td></tr>
<tr class="separator:a553f9c6da7e67c6e186259122651864a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a6c9cfe5901d3efd81bc53da3d5edc9e5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_c_mutex.html">CMutex</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_recursive_mutex.html#a6c9cfe5901d3efd81bc53da3d5edc9e5">_mutex</a></td></tr>
<tr class="separator:a6c9cfe5901d3efd81bc53da3d5edc9e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad277df2b191cd54075130d175c72c4c0"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_recursive_mutex.html#ad277df2b191cd54075130d175c72c4c0">_lockThreadId</a></td></tr>
<tr class="separator:ad277df2b191cd54075130d175c72c4c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6990296f98781a07e0d151cac9177ebf"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_recursive_mutex.html#a6990296f98781a07e0d151cac9177ebf">_lockCount</a></td></tr>
<tr class="separator:a6990296f98781a07e0d151cac9177ebf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>递归锁 </p>
<dl class="section remark"><dt>备注</dt><dd>用于递归函数中防止锁的重复调用造成的死锁 </dd></dl>

<p class="definition">在文件 <a class="el" href="_recursive_mutex_8h_source.html">RecursiveMutex.h</a> 第 <a class="el" href="_recursive_mutex_8h_source.html#l00012">12</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a4ef28266819d01562d3fdeb734cc8068"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ef28266819d01562d3fdeb734cc8068">&#9670;&nbsp;</a></span>CRecursiveMutex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a> CRecursiveMutex::CRecursiveMutex </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_recursive_mutex_8cpp_source.html">RecursiveMutex.cpp</a> 第 <a class="el" href="_recursive_mutex_8cpp_source.html#l00005">5</a> 行定义.</p>

</div>
</div>
<a id="a6a81b3d2450ff8f1c06874c6ea85be67"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a81b3d2450ff8f1c06874c6ea85be67">&#9670;&nbsp;</a></span>~CRecursiveMutex()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CRecursiveMutex::~CRecursiveMutex </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_recursive_mutex_8cpp_source.html">RecursiveMutex.cpp</a> 第 <a class="el" href="_recursive_mutex_8cpp_source.html#l00011">11</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a553f9c6da7e67c6e186259122651864a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a553f9c6da7e67c6e186259122651864a">&#9670;&nbsp;</a></span>delete_class_copy_operator()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CRecursiveMutex::delete_class_copy_operator </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_recursive_mutex.html">CRecursiveMutex</a>&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a0d5f2e5a91c7757d0eeb3f4f6a816289"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d5f2e5a91c7757d0eeb3f4f6a816289">&#9670;&nbsp;</a></span>Handle()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">SYNCHANDLE</a> CRecursiveMutex::Handle </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="class_c_mutex_base.html#aeeb8e3603ae7ecabdf7fc9103295d565">CMutexBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_recursive_mutex_8cpp_source.html">RecursiveMutex.cpp</a> 第 <a class="el" href="_recursive_mutex_8cpp_source.html#l00037">37</a> 行定义.</p>

</div>
</div>
<a id="aba7f1be4b2bff1dd9375cc90e05941bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba7f1be4b2bff1dd9375cc90e05941bb">&#9670;&nbsp;</a></span>Lock()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CRecursiveMutex::Lock </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="class_c_mutex_base.html#ac23d438cd5b38643a222bcb74adbb604">CMutexBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_recursive_mutex_8cpp_source.html">RecursiveMutex.cpp</a> 第 <a class="el" href="_recursive_mutex_8cpp_source.html#l00017">17</a> 行定义.</p>

</div>
</div>
<a id="abc05b7ff3fcce00bfe0354f6a0b2700c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abc05b7ff3fcce00bfe0354f6a0b2700c">&#9670;&nbsp;</a></span>Test_Recursive()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CRecursiveMutex::Test_Recursive </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>dwThread</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_recursive_mutex_8cpp_source.html">RecursiveMutex.cpp</a> 第 <a class="el" href="_recursive_mutex_8cpp_source.html#l00042">42</a> 行定义.</p>

</div>
</div>
<a id="a23d5b6de26ead85da2c13ec5f523ceec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23d5b6de26ead85da2c13ec5f523ceec">&#9670;&nbsp;</a></span>Unlock()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CRecursiveMutex::Unlock </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="class_c_mutex_base.html#abd6a9da2d294b50fc9651c1be6b7e808">CMutexBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_recursive_mutex_8cpp_source.html">RecursiveMutex.cpp</a> 第 <a class="el" href="_recursive_mutex_8cpp_source.html#l00028">28</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a6990296f98781a07e0d151cac9177ebf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6990296f98781a07e0d151cac9177ebf">&#9670;&nbsp;</a></span>_lockCount</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long CRecursiveMutex::_lockCount</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_recursive_mutex_8h_source.html">RecursiveMutex.h</a> 第 <a class="el" href="_recursive_mutex_8h_source.html#l00026">26</a> 行定义.</p>

</div>
</div>
<a id="ad277df2b191cd54075130d175c72c4c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad277df2b191cd54075130d175c72c4c0">&#9670;&nbsp;</a></span>_lockThreadId</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long CRecursiveMutex::_lockThreadId</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_recursive_mutex_8h_source.html">RecursiveMutex.h</a> 第 <a class="el" href="_recursive_mutex_8h_source.html#l00025">25</a> 行定义.</p>

</div>
</div>
<a id="a6c9cfe5901d3efd81bc53da3d5edc9e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6c9cfe5901d3efd81bc53da3d5edc9e5">&#9670;&nbsp;</a></span>_mutex</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_mutex.html">CMutex</a> CRecursiveMutex::_mutex</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_recursive_mutex_8h_source.html">RecursiveMutex.h</a> 第 <a class="el" href="_recursive_mutex_8h_source.html#l00024">24</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>H:/project/LibTools/src/thread/<a class="el" href="_recursive_mutex_8h_source.html">RecursiveMutex.h</a></li>
<li>H:/project/LibTools/src/thread/<a class="el" href="_recursive_mutex_8cpp_source.html">RecursiveMutex.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
